import App from './App'
//引入仓库
import store from '@/store/index.js'

// #ifndef VUE3
import Vue from 'vue'
// 引入uview库
import uView from "uview-ui";
Vue.use(uView);

//挂载全局组件
import MyComp from '@/components/test-my-comp.vue'
Vue.component('test-my-comp',MyComp)
import NavCustom from '@/components/nav-custom.vue'
Vue.component('nav-custom',NavCustom)
import Hometitle from '@/components/home-title.vue'
Vue.component('home-title',Hometitle)
import GoodItem from '@/components/good-item.vue'
Vue.component('good-item',GoodItem)
import TabCustom from '@/components/tab-custom.vue'
Vue.component('tab-custom',TabCustom)

//挂载全局异步请求方法
import {$http,$get,$post} from '@/utils/request.js'
Vue.prototype.$http = $http
Vue.prototype.$get = $get
Vue.prototype.$post = $post

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App,
	store   //注入状态机
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif